<?php
/**
 * Created by PhpStorm.
 * User: mengkang <i@mengkang.net>
 * Date: 2017/10/29 下午3:36
 */


class MessageService
{
    public static function sendMessage($toUid,$message){
        $userService = new Rpc\RpcClient('UserService');
        $userInfo = $userService->getUserInfo($toUid);

        var_dump($userInfo);

        //... 根据用户的姓名组装消息

        return $userInfo;
    }
}